package game;

import java.util.HashMap;

public class Scoreboard {
	private HashMap<String, Integer> scores;
	
	public Scoreboard(){
		this.scores = new HashMap<String, Integer>();
	}
	
	public Integer getScore(String playerName){
		return this.scores.get(playerName);
	}
	
	public void increaseScore(String playerName){
		this.scores.put(playerName, this.scores.get(playerName)+1);
	}
	
	public void resetScore(String playerName){
		this.scores.put(playerName, 0);
	}
	
	public HashMap<String, Integer> getScores(){
		return this.scores;
	}
}
